﻿using AutoMapper;
using Leo.Awesome.DictionaryManagement.Dtos;
using Volo.Abp.AutoMapper;

namespace Leo.Awesome.Attachment;

public class AttachmentApplicationAutoMapperProfile : Profile
{
    public AttachmentApplicationAutoMapperProfile()
    {
        CreateMap<Attachment, AttachmentGetOutPutDto>().Ignore(x=>x.FileContext);

        CreateMap<Attachment, AttachmentGetListOutputDto>().Ignore(x => x.FileContext);

        CreateMap<AttachmentGetOutPutDto, Attachment>()
            .IgnoreFullAuditedObjectProperties();

        CreateMap<Attachment, AttachmentCreateUpdateInput>()
            .Ignore(x => x.FileContext);

        CreateMap<AttachmentCreateUpdateInput, Attachment>()
            .IgnoreFullAuditedObjectProperties();


        CreateMap<AttachmentGetOutPutDto, AttachmentCreateUpdateInput>()
            .Ignore(x=>x.FileContext);
    }
}
